/*
* Copyright (C) 2017-2021
* All rights reserved, Designed By
* Copyright authorization contact 18814114118
*/
package com.shop.cereshop.commons.domain.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.shop.cereshop.commons.annotation.KeepLongAsNumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 商品规格服务项表
 * </p>
 *
 * @since 2025-07-29
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@TableName("cere_sku_project")
@ApiModel(value = "SkuProject", description = "商品规格服务项表")
@AllArgsConstructor
public class SkuProject {

    private static final long serialVersionUID = 1L;

    /**
     * 商品服务项目ID
     */
    @ApiModelProperty(value = "商品服务项目ID")
    @NotNull(message = "商品服务项目ID不能为空")
    @TableId(value = "project_id", type = IdType.AUTO)
    @KeepLongAsNumber
    private Long projectId;


    /**
     * 关联商品ID
     */
    @ApiModelProperty(value = "关联商品ID")
    @TableField("sku_id")
    @KeepLongAsNumber
    private Long skuId;


    /**
     * 商品包含的项目名称
     */
    @ApiModelProperty(value = "商品包含的项目名称")
    @Length(max = 50, message = "商品包含的项目名称长度不能超过50")
    @TableField(value = "project_name", condition = LIKE)
    private String projectName;


    /**
     * 项目数量
     */
    @ApiModelProperty(value = "项目数量")
    @TableField("project_count")
    private Integer projectCount;




}
